<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductListSummary.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.ProductListSummary" %>
<div style="text-align:center;height:20px;" align="center">
    <asp:Label runat="server" ID="lblStatus" ForeColor="#1A5688" Font-Bold="True" Font-Size="Medium"/>
</div>
<br />

 <asp:GridView ID="gvContent" runat="server"  AllowPaging="false" autogeneratecolumns="false" 
           CellPadding="6" ForeColor="#333333"  OnRowCommand="gvContent_RowCommand" BorderColor="white" BorderWidth="0" Width="80%" OnRowDataBound="gvContent_RowDataBound" >
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White"  />
            <Columns>
                <asp:TemplateField HeaderText="Name">
                    <ItemTemplate>
                        <asp:Label ID="lblName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Seller">
                    <ItemTemplate>
                        <asp:Label ID="lblSumary" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Seller") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Price">
                    <ItemTemplate>
                        $<asp:Label ID="lblPrice" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Price") %>'/>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Image">
                    <ItemTemplate>
                    <asp:ImageButton  ID="ibImagePreView" runat="server" OnClick="ibImagePreView_Click" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>'/>
                        
                    </ItemTemplate>
                </asp:TemplateField>                
                <asp:TemplateField >
                    <ItemTemplate>                                               
                    <asp:ImageButton ID="imgEdit" ImageUrl="~/Admin/Images/edit.gif"  runat="server"   CommandName="editContent" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' />
                    <asp:ImageButton ID="ingDelete" ImageUrl="~/Admin/Images/delete.gif" runat="server" OnClientClick="return confirm('Are you sure you want to delete?');"  CommandName="delContent" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' />            
                    <asp:Button ID="btnViewDetail" runat="server" OnClick="btnViewDetail_Click" Text="View Detail"  CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>'/>
                   </ItemTemplate>
                </asp:TemplateField>                           
            </Columns>            
        </asp:GridView>  

